/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightState;
import com.sasis.dao.FlightStateDao;
import com.sasis.service.FlightStateManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightStateManagerImpl extends BaseManager implements FlightStateManager {
    private FlightStateDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightStateDao(FlightStateDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightStateManager#getFlightStates(com.sasis.model.FlightState)
     */
    public List getFlightStates(final FlightState flightState) {
        return dao.getFlightStates(flightState);
    }

    /**
     * @see com.sasis.service.FlightStateManager#getFlightState(String id)
     */
    public FlightState getFlightState(final String id) {
        return dao.getFlightState(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightStateManager#saveFlightState(FlightState flightState)
     */
    public void saveFlightState(FlightState flightState) {
        dao.saveFlightState(flightState);
    }

    /**
     * @see com.sasis.service.FlightStateManager#removeFlightState(String id)
     */
    public void removeFlightState(FlightState flightState) {
        dao.removeFlightState( flightState);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
